package com.wjt.homestayms.pojo;

import java.util.Date;

public class Orderinfo {
    private Integer oId;
    private Integer rNum;
    private Integer price;
    private String tName;
    private Date time;
    private Integer id;
    private Integer deposit;
    private Integer day;
    private Integer refund;

    public void setOId(Integer oId) {
        this.oId = oId;
    }

    public Orderinfo(Integer oId, Integer rNum, Integer price, String tName, Date time, Integer id, Integer deposit, Integer day, Integer refund) {
        this.oId = oId;
        this.rNum = rNum;
        this.price = price;
        this.tName = tName;
        this.time = time;
        this.id = id;
        this.deposit = deposit;
        this.day = day;
        this.refund = refund;
    }

    public Integer getOId() {
        return this.oId;
    }


    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getPrice() {
        return this.price;
    }


    public void setTime(Date time) {
        this.time = time;
    }

    public Date getTime() {
        return this.time;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return this.id;
    }

    public void setDeposit(Integer deposit) {
        this.deposit = deposit;
    }

    public Integer getDeposit() {
        return this.deposit;
    }

    public void setDay(Integer day) {
        this.day = day;
    }

    public Integer getDay() {
        return this.day;
    }

    public void setRefund(Integer refund) {
        this.refund = refund;
    }

    public Integer getRefund() {
        return this.refund;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) { return true; }
        if (o == null || getClass() != o.getClass()) {return false;}
        Orderinfo that = (Orderinfo) o;
        return oId.equals(that.oId);
    }

    @Override
    public int hashCode() {
        return java.util.Objects.hash(oId);
    }

    public Integer getrNum() {
        return rNum;
    }

    public void setrNum(Integer rNum) {
        this.rNum = rNum;
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }
}